package model
{
	import flash.display.MovieClip;

	public class Game extends MovieClip
	{
		private var levels:Array = new Array();
		private var successPoints:uint = Config.SuccessPointsAtStart;
		
		public function Game():void
		{
			this.addLevel();
		}
		
		/**
		 * a new level will be added only, when the last is finished and the player wants to continue 
		 */		
		public function addLevel():void
		{
			this.levels.push(new Level(this.levels.length + 1));
		}
		
		/**
		 * gives the current active level
		 * 
		 * @return	last level in level-array
		 * @see 	model.Game.addLevel()
		 */		
		public function getCurrentLevel():Level
		{
			return this.levels[this.levels.length-1];
		}
	}
}